.class Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;
.super Ljava/lang/Object;
.source "AbsActionBarSwipeBackActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->setTopTitle(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    .prologue
    .line 125
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 13

    .prologue
    const/4 v11, 0x1

    const/4 v8, 0x0

    .line 129
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mBackBtn:Landroid/view/View;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$000(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/view/View;

    move-result-object v9

    invoke-virtual {v9}, Landroid/view/View;->getWidth()I

    move-result v3

    .line 130
    .local v3, "leftWidth":I
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mRightActionArea:Landroid/widget/FrameLayout;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$100(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/widget/FrameLayout;

    move-result-object v9

    invoke-virtual {v9}, Landroid/widget/FrameLayout;->getWidth()I

    move-result v7

    .line 131
    .local v7, "rightWidth":I
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mTitle:Landroid/widget/TextView;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$200(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/widget/TextView;

    move-result-object v9

    invoke-virtual {v9}, Landroid/widget/TextView;->getWidth()I

    move-result v1

    .line 132
    .local v1, "centerWidth":I
    const/high16 v9, 0x41800000

    iget-object v10, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mMetrics:Landroid/util/DisplayMetrics;
    invoke-static {v10}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$300(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/util/DisplayMetrics;

    move-result-object v10

    invoke-static {v11, v9, v10}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v9

    float-to-int v4, v9

    .line 133
    .local v4, "padding":I
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mMetrics:Landroid/util/DisplayMetrics;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$300(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/util/DisplayMetrics;

    move-result-object v9

    iget v9, v9, Landroid/util/DisplayMetrics;->widthPixels:I

    sub-int v0, v9, v4

    .line 135
    .local v0, "centerSpace":I
    sub-int v9, v0, v3

    sub-int/2addr v9, v7

    if-gt v1, v9, :cond_43

    div-int/lit8 v9, v1, 0x2

    div-int/lit8 v10, v0, 0x2

    sub-int/2addr v10, v3

    if-lt v9, v10, :cond_6c

    .line 136
    :cond_43
    const/high16 v9, 0x40000000

    iget-object v10, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mMetrics:Landroid/util/DisplayMetrics;
    invoke-static {v10}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$300(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/util/DisplayMetrics;

    move-result-object v10

    invoke-static {v11, v9, v10}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v9

    float-to-int v2, v9

    .line 138
    .local v2, "dp_2":I
    add-int v5, v3, v2

    .line 139
    .local v5, "paddingL":I
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mCommitBtn:Landroid/widget/Button;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$400(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/widget/Button;

    move-result-object v9

    invoke-virtual {v9}, Landroid/widget/Button;->getVisibility()I

    move-result v9

    if-nez v9, :cond_6a

    add-int v6, v7, v2

    .line 141
    .local v6, "paddingR":I
    :goto_60
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mTitle:Landroid/widget/TextView;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$200(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/widget/TextView;

    move-result-object v9

    invoke-virtual {v9, v5, v8, v6, v8}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 145
    .end local v2    # "dp_2":I
    .end local v5    # "paddingL":I
    .end local v6    # "paddingR":I
    :goto_69
    return-void

    .restart local v2    # "dp_2":I
    .restart local v5    # "paddingL":I
    :cond_6a
    move v6, v8

    .line 139
    goto :goto_60

    .line 143
    .end local v2    # "dp_2":I
    .end local v5    # "paddingL":I
    :cond_6c
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity$1;->this$0:Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;

    # getter for: Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->mTitle:Landroid/widget/TextView;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->access$200(Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;)Landroid/widget/TextView;

    move-result-object v9

    invoke-virtual {v9, v8, v8, v8, v8}, Landroid/widget/TextView;->setPadding(IIII)V

    goto :goto_69
.end method
